package sd.czw.com.mmgapp.mcallback;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;
import okhttp3.Response;
import sd.czw.com.mmgapp.model.personalbean.YHJModel;


/**
 * Created by czw
 * desc 描述：
 * on 2017/7/14.
 */
public abstract class YHJCallback extends Callback<YHJModel> {

    @Override
    public YHJModel parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        YHJModel homeInfo = new Gson().fromJson(string, YHJModel.class);
        return homeInfo;
    }
}
